<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="vue.js"></script>
    <link rel="stylesheet" href="animate.min.css" >
</head>

<style>
    .slide-enter,.slide-leave-to {
        padding-bottom: 20px;
    }
    .slide-enter-active,.slide-leave-active {
        transition: all 2s;
    }
    .slide-enter-to,.slide-leave {
        padding-bottom: 0;
    }
</style>

<body>
    <div id="app">
        <transition 
            enter-active-class="animated bounce"
            leave-active-class="animated bounce"
        >
            <div v-if="isshow" style="width:100px;height:100px;background-color: pink;"></div>
        </transition>
        <button @click="isshow=!isshow">按钮</button>
    </div>

    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                isshow: true,
            },
            methods: {}
        });
    </script>
</body>

</html>